package model;

public class Article {
	private int code;
	private String nom;
	private String description;
	private float prix;
	private int quantite;
	
	public Article() {
		code = 0;
		nom = "";
		description = "";
		prix = 0;
		quantite = 0;
	}

	public Article(int id, String name, String descrip, float price, int amount) {
		code = id;
		nom = name;
		description = descrip;
		prix = price;
		quantite = amount;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public float getPrix() {
		return prix;
	}

	public void setPrix(float prix) {
		this.prix = prix;
	}

	public int getQuantite() {
		return quantite;
	}

	public void setQuantite(int quantite) {
		this.quantite = quantite;
	}
}
